package com.kehongborui.fliggy.controller;

import org.apache.log4j.Logger;
import org.apache.log4j.spi.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-08-17
 */
@RestController
@RequestMapping
public class TestController {
    private Logger log = Logger.getLogger(TestController.class);

    @GetMapping("/test")
    public String test() {
        log.info("-----------> this is test!");
        return "hello fliggy ";
    }
}
